package cn.gracefulcoding.test.infrastructure;

import java.util.List;
import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import cn.gracefulcoding.infrastructure.persistent.dao.IAwardDAO;
import cn.gracefulcoding.infrastructure.persistent.po.Award;
import com.alibaba.fastjson2.JSON;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: HJD
 * @Motto: 尽人事，知天命
 * @Date: 2024/11/20 21:48
 * @Description: 奖品持久化测试
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class AwardDAOTest {
    @Resource
    private IAwardDAO awardDAO;

    @Test
    public void testQueryAwardList() {
        List<Award> awards = awardDAO.queryAwardList();
        log.info("测试结果: {}", JSON.toJSONString(awards));
    }
}
